package com.atguigu.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CommonResult<T> implements Serializable {

    private int code;
    private String message;
    private T  data;


    public CommonResult(Integer code,String message){
        this(code,message,null);
    }
}
